tmem: cleanup: drop tmem_lock_all
authorBob Liu <lliubbo@gmail.com>
Thu, 12 Dec 2013 11:05:08 +0000 (19:05 +0800)
committerJan Beulich <jbeulich@suse.com>
Wed, 8 Jan 2014 07:53:58 +0000 (08:53 +0100)
commitb67497054e25da9f68879d3ca2db9d0b5c1bba7d
tree00742a1c25320a188936911791965a0169dbcb26
parent68af011e2af21f463826059cf50501f0126d09cd
tmem: cleanup: drop tmem_lock_all

tmem_lock_all is used for debug only, remove it from upstream to make
tmem source code more readable and easier to maintain.
And no_evict is meaningless without tmem_lock_all, this patch removes it
also.

This also fixes CID 1055654 Thread deadlock

[ Two threads will be stuck waiting forever if each holds a lock the other needs to acquire.
In alloc_heap_pages: Threads may try to acquire two locks in different orders, potentially
causing deadlock (CWE-833)]

Signed-off-by: Bob Liu <bob.liu@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
xen/common/tmem.c
xen/common/tmem_xen.c
xen/include/xen/tmem_xen.h